/*                                                    _
 *                   ___ _ __ ___ _ __ ___   ___   __| |
 *                  / __| '__/ __| '_ ` _ \ / _ \ / _` |
 *                  \__ \ |  \__ \ | | | | | (_) | (_| |
 *                  |___/_|  |___/_| |_| |_|\___/ \__,_|                                  
 *
 *  __|_ _  _  _| _  _ _|._  _  _|   _ _    _  _ _  _    __|_ _   __|_   _ _ 
 * _\ | (_|| |(_|(_|| (_||/_(/_(_|  | (/_\/(_|| | ||_)  _\ | ||_|(_ ||_|| (/_
 *                                                 |    
 */
 
#include <sourcemod>
#include <sdktools>
#include "left4downtown.inc"

#define SRS_VERSION "0.1"
#define SRS_DEBUG 0
#define SRS_DEBUG_LOG 1
#define SRS_DEBUG_SPAM 0

#include "srs.helpers.sp"
#include "srs.statehelpers.sp"
#include "srs.unprohibitbosses.sp"
#include "srs.despawninfected.sp"
#include "srs.waterbrake.sp"

public Plugin:myinfo = 
{
	name = "Standardized Revamp Structure Modification for L4D2",
	author = "srsteam",
	description = "<- Description ->",
	version = "0.1",
	url = "http://srsmod.googlecode.com/"
}

public OnPluginStart()
{
	RequireL4D2();
	
	LoadTranslations("common.phrases");
	
	StateHelpers_OnPluginStart();
	
	UnprohibitBosses_OnPluginStart();
	
	DespawnInfected_OnPluginStart();
	
	WaterBrake_OnPluginStart();
	
	CreateConVar("l4d2_srs_version", SRS_VERSION, "srsmod version.", SRS_CVAR_DEFAULT_FLAGS);
}

public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)
{
	Waterbrake_OnPlayerRunCmd(client, buttons);
}